package com.luohh.treeroom.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.luohh.treeroom.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 罗辉煌
 * @since 2020-02-07
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    IPage<UserInfo> getStrangerList(Page<UserInfo> page, Map<String, Object> param);

    IPage<UserInfo> getList(Page<UserInfo> page, Map<String, Object> param);

    IPage<UserInfo> getListNotin(Page<UserInfo> page, List<Integer> list);

    int insertReturnId(UserInfo userInfo);
}
